﻿#region :: File Specification ::
/************************ Code File Header ****************************
Author:        v0cn306 Archer Chen    
Date:           2012 June 28
Description: All data entities used in AutoMapper Learning

Modification History:
Editor                    Date                      Comment

*******************************************************************/
#endregion
      
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AutoMapper;

namespace CodeStudy.AutoMapper.DataEntities
{
    /// <summary>
    /// Data entity order
    /// </summary>
    public class OrderDE
    {
        public int ID { get; set; }
        public int CustomerID { get; set; }
        public DateTime CreatedTime { get; set; }
        public int State { get; set; }
    }

    /// <summary>
    /// Data entity customer
    /// </summary>
    public class CustomerDE 
    {
        public int ID { get; set; }
        public string Name { get; set; }
        public string Address { get; set; }
        public string Email { get; set; }
    }

    /// <summary>
    /// Data entity order line
    /// </summary>
    public class OrderLineDE 
    {
        public int ID { get; set; }
        public int OrderID { get; set; }
        public DateTime AddedTime { get; set; }
        public int ProductID { get; set; }
        public int ProductCount { get; set; }
        public float Discount { get; set; }
    }

    /// <summary>
    /// Data entity product
    /// </summary>
    public class ProductDE 
    {
        public int ID { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public decimal Price { get; set; }
    }



}
